package org.example06;

import org.example06.ba03.SomeService;
import org.example06.ba03.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest03 {
    @Test
    public void test01(){
        String config = "applicationContext.xml";

        ApplicationContext ac =new ClassPathXmlApplicationContext(config);
        SomeService proxy = (SomeService) ac.getBean("someService");

        String str = proxy.doFirst("zhang", 23);


        System.out.println("str===="+str);
    }


}
